<?php
//销毁session
session_start();
$_SESSION['user']=null;
session_destroy();
//跳转
echo "注销成功！2秒后自动跳转！";
header("Refresh:2;url=../index.php");
?>